<?php

namespace api\wrapper;

abstract class Wrapper {

	protected $_object;

    public function __set($name, $value) {
        $this->_object->$name = $value;
    }
	
    public function __get($name) {
		return $this->_object->$name;
    }

    public final function __call($name, $arguments) {
		call_user_func_array(array($this->_object,$name), $arguments);
    }

    public final static function __callStatic($name, $arguments) {
		call_user_func_array(array($this->_object,$name), $arguments);
    }	
	
}